#ifndef __SOCKET_BASE_H__
#define __SOCKET_BASE_H__
#include <list>
#include <thread>
#include <mutex>
#include <WinSock2.h>
#pragma comment(lib, "WS2_32.lib")
#define HSocket SOCKET

class SocketBase
{

public:
	SocketBase();
	~SocketBase();
protected:
	void closeConnect(HSocket socket);
	bool error(HSocket socket);
protected:
	std::mutex _mutex;
private:
	bool _bInitSuccess;
};
#endif